from rest_framework.viewsets import ModelViewSet

from apps.goods.models import SpecificationOption
from apps.meiduo_admin.serializers.specs_options_serializers import SpecsOptionsSerializers
from apps.meiduo_admin.utils.pagenum import PageNum


class SpecsOptions(ModelViewSet):
    serializer_class = SpecsOptionsSerializers
    queryset = SpecificationOption.objects.all().order_by("-create_time")
    pagination_class = PageNum